package cn.wolfcode.mapper;

import cn.wolfcode.domain.SystemDictionary;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface SystemDictionaryMapper {
    int deleteByPrimaryKey(Long id);
    int updateByPrimaryKey(SystemDictionary systemDictionary);
    int insert(SystemDictionary systemDictionary);
    SystemDictionary selectByPrimaryKey(Long id);
    List<SystemDictionary> selectAll();
    // 分页查询
    List<SystemDictionary> selectForList(QueryObject qo);

    // 通过编号来查找业务这一目录下的子级
    List<SystemDictionary> selectBySn(String business);

    List<SystemDictionary> selectByParentId(Long parentId);
}